// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import axios from 'axios'
import router from './router'
// element ui
import { Button, Form, FormItem, Input ,Message,Card,Avatar,Menu,Upload,Divider} from 'element-ui'
		//导入css文件
import 'element-ui/lib/theme-chalk/index.css'

import './assets/css/global.css'
import './assets/ifont/iconfont.css'

Vue.config.productionTip = false


Vue.use(Form)
Vue.use(Button)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Message)
Vue.use(Card)
Vue.use(Avatar)
Vue.use(Menu)
Vue.use(Upload)
Vue.use(Divider)


//配置axios请求根路径
// 124.70.41.29
//127.0.0.1
axios.defaults.baseURL = 'http://124.70.41.29:8080/';

// 绑定axios
Vue.prototype.$http = axios;
Vue.prototype.$message = Message;
new Vue({
  el: '#app',
  router,

  components: { App },
  template: '<App/>'
})
